package ru.study.thinkin.chapter7;

public class SpaceShipDelegation {
	private String name;
	private SpaceShipControl control = new SpaceShipControl();
	
	public SpaceShipDelegation(String name) {
		this.name = name;
	}

	public void up(int velocity) {
		control.up(velocity);
	}	

	public void back(int velocity) {
		control.down(velocity);
	}
	public void forward(int velocity) {
		control.forward(velocity);
	}		

	public static void main(String[] args) {
		SpaceShipDelegation prot = new SpaceShipDelegation("PROT II");
		System.out.println(prot.name);

	}

}
